<html>
<head>
<style type='text/css'>
body {
   background-color: white;
   margin: 1em 2em 1em 2em;
   font-family: Sans-Serif;
   color: #002;
   line-height: 140%;
   font-size: 12px;
}

h1 {
    font-size: 140%;
}

h2 {
    font-size: 130%;
}

h3 {
    font-size: 120%;
}

h4 {
    font-size: 100%;
    font-style: normal;
    font-weight: bold;
}

h5 {
    font-size: 100%;
    font-style: italic;
    font-weight: normal;
}

pre {
   background-color: #eee;
   padding: 0.5em 0.5em 0.5em 2em;
}

@media print {
   pre {word-wrap:break-word; width:100%;}
} 

ul li,
ol li {
   padding-left: 0.3em;
   /*text-indent: -2em;*/
   margin-bottom: 0.5em;
}

em {
   font-style: normal;
   font-weight: bold;
   text-decoration: underline;
   color: #c40;
}

code {
   font-family: Monospace;
   font-size: 100%;
   color: #c40;
}

a, a * {
   text-decoration: underline;
   color: #14a0d1;
   /* border: 0.5px solid #aaa;
   white-space: nowrap;
   padding-right: 0.1em;
   padding-left: 0.1em;
   padding-bottom: -5px; */
}

a code {
   color: #14a0d1;
}

img {
   position: relative;
   bottom: -4px;
}

div.headline {
   font-weight: bold;
   font-size: 110%;
}

div.copyright {
   margin-top: 1em;
   border-top: 1px solid black;
   padding-top: 0.5em;
}

div.iris_headline {
   border-bottom: 1px solid black;
   padding-bottom: 0.3em;
}

.LaTeX {
   font-family: Monospace;
   font-size: 100%;
   border: 1px solid #060;
   color: #060;
}

code.LaTeX {
   background-color: white;
   padding: 0.5em 0.5em 0.5em 2em;
}
</style>
</head>

<body>
<div class="iris_headline">IRIS Toolbox Reference Manual</div>




<h2 id="rpteq/run">run</h2>
<div class="headline">Evaluate reporting equations (rpteq) object</div>

<h4 id="syntax">Syntax</h4>
<pre><code>Outp = run(Q,Inp,Range,...)</code></pre>
<h4 id="input-arguments">Input arguments</h4>
<ul>
<li><p><code>Q</code> [ char ] - Reporting equations (rpteq) object.</p></li>
<li><p><code>Inp</code> [ struct ] - Input database that will be used to evaluate the reporting equations.</p></li>
<li><p><code>Dates</code> [ numeric | char ] - Dates at which the reporting equations will be evaluated; <code>Dates</code> does not need to be a continuous date range.</p></li>
</ul>
<h4 id="output-arguments">Output arguments</h4>
<ul>
<li><code>Outp</code> [ struct ] - Output database with reporting variables.</li>
</ul>
<h4 id="options">Options</h4>
<ul>
<li><p><code>'dbOverlay='</code> [ <code>true</code> | <em><code>false</code></em> | struct ] - If <code>true</code>, the LHS output data will be combined with data from the input database (or a user-supplied database).</p></li>
<li><p><code>'fresh='</code> [ <code>true</code> | <em><code>false</code></em> ] - If <code>true</code>, only the LHS reporting variables will be included in the output database, <code>Outp</code>; if <code>false</code> the output database will also include all entries from the input database, <code>Inp</code>.</p></li>
</ul>
<h4 id="description">Description</h4>
<p>Reporting equations are always evaluated non-simultaneously, i.e. equation by equation, for each period.</p>
<h4 id="example">Example</h4>
<p>Note the differences in the three output databases, <code>d1</code>, <code>d2</code>, <code>d3</code>, depending on the options <code>'dbOverlay='</code> and <code>'fresh='</code>.</p>
<pre><code>&gt;&gt; q = rpteq({ ...
    &#39;a = c * a{-1}^0.8 * b{-1}^0.2;&#39;, ...
    &#39;b = sqrt(b{-1});&#39;, ...
    })

q =
    rpteq object
    number of equations: [2]
    comment: &#39;&#39;
    user data: empty
    export files: [0]

&gt;&gt; d = struct();
&gt;&gt; d.a = tseries();
&gt;&gt; d.b = tseries();
&gt;&gt; d.a(qq(2009,4)) = 0.76;
&gt;&gt; d.b(qq(2009,4)) = 0.88;
&gt;&gt; d.c = 10;
&gt;&gt; d

d = 
    a: [1x1 tseries]
    b: [1x1 tseries]
    c: 10

&gt;&gt; d1 = run(q,d,qq(2010,1):qq(2011,4))

d1 = 
    a: [8x1 tseries]
    b: [8x1 tseries]
    c: 10

&gt;&gt; d2 = run(q,d,qq(2010,1):qq(2011,4),&#39;dbOverlay=&#39;,true)

d2 = 
    a: [9x1 tseries]
    b: [9x1 tseries]
    c: 10

&gt;&gt; d3 = run(q,d,qq(2010,1):qq(2011,4),&#39;fresh=&#39;,true)

d3 = 
    a: [8x1 tseries]
    b: [8x1 tseries]</code></pre>

</body>
<div class="copyright">IRIS Toolbox. Copyright &copy; 2007-2015 IRIS Solutions Team.</div>
</html>
